package com.neu.question.service;

import com.github.pagehelper.PageInfo;
import com.neu.question.domain.QuestionInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
* @author nxwr0
* @description 针对表【question_info】的数据库操作Service
* @createDate 2022-11-04 12:25:24
*/
public interface QuestionInfoService extends IService<QuestionInfo> {
    //添加题目
    int addQuestion(Map<String, Object> map);

    //根据题目标题模糊查询
    PageInfo getQuestionByTitle(Map<String, Object> map);

    //查询所有题目
    List<Map<String, Object>> getAllQuestion(Map<String, Object> map);

    //编辑题目
    int updateQuestion(Map<String, Object> map);

    //删除题目
    int deleteQuestion(Map<String, Object> map);

    //根据id查询题目
    List<Map<String, Object>> getQuestionByIdList(Map<String, Object> map);
}
